package com.shf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shf.domain.entity.Role;

import java.util.List;

/**
 * @author 叶枫
 * @date 2023/11/20.
 */


public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 查询普通用户的角色权限
     * @param userId
     * @return
     */
    List<String> selectRoleKeyByOtherUserId(Long userId);

    /**
     *  修改用户-①根据id查询用户信息
     * @param userId
     * @return
     */
    List<Long> selectRoleIdByUserId(Long userId);
}
